package xyz.hujf.product.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import xyz.hujf.product.service.UserService;
import xyz.hujf.productvo.model.User;

import java.util.List;

/**
 * @author Hujf
 * @title: Usercontroller
 * @date 2021/4/1613:46
 * @description: TODO
 */
@RestController
public class Usercontroller {

    @Autowired
    private UserService userService;

    @GetMapping("/get")
    public List<User> find(){
       List a = userService.findall();
       return a;
    }
}
